export const baseConfig = {
	pageName: '养老从业人员',
	rowKey: 'id',
	addLabel: '采集数据',
	tipLabel: 'practitionersName',
	dictcodes: ['ID_CARD_TYPE', 'NATIONALITY', 'POLITICAL_STATUS', 'EDUCATION_DEGREE', 'MARITAL_STATUS', 'MARITAL_STATUS', 'OCCUPATION_TYPE'],
	api: {
		index: 'view_dpFoundationPractitioners_page',
		edit: 'view_dpServiceProvider_edit',
		detail: 'view_dpFoundationPractitioners_view',
		delete: 'view_dpFoundationPractitioners_del',
		export: 'view_dpFoundationPractitioners_export',
	},
	auth: {
		index: 'view_dpFoundationPractitioners_page',
		edit: 'view_dpServiceProvider_edit',
		detail: 'view_dpFoundationPractitioners_view',
		delete: 'view_dpFoundationPractitioners_del',
		export: 'view_dpFoundationPractitioners_export',
	},
	menuBtn: [
		{
			icon: 'editor',
			label: '查看档案',
			type: 'primary',
			operate: 'Archives',
			auth: 'sys_role_edit',
			text: true,
			show: true,
		},
	],
	dialogConfig: {
		width: '90%',
		// fullscreen: true
	},

	tableConfig: {
		stripe: true,
		border: true,
		maxHeight: '80vh',
		columns: [
			{ label: '身份证号', prop: 'idCard' },
			{
				label: '从业人员',
				prop: 'practitionersName',
				width: 140,
				render: ({ row }) => {
					let str = [row.practitionersName, row.genderLabel, row.age].filter(Boolean).join(' / ')
					return str
				},
			},
			{ label: '联系方式', prop: 'phone' },
			{ label: '职业类型', prop: 'occupationTypeLabel' },
			{ label: '学历', prop: 'cultureDegreeLabel' },
			{
				label: '是否持证',
				prop: 'isHold',
				custome: 'tag',
				dicData: [
					{ label: '已持证', value: 1, type: 'success' },
					{ label: '未持证', value: 0, type: 'info' },
				],
				span: 8,
			},
			{ label: '证件名称', prop: 'certificateTypeLabel' },
			{ label: '在职状态', prop: 'serviceStateLabel' },
			{
				label: '操作',
				prop: 'menu',
				width: 200,
				fixed: 'right',
			},
		],
	},
}
